package com.nefu.editor.core.mapper;

import com.nefu.editor.core.mapper.provider.WordCloudProvider;
import com.nefu.editor.core.model.WordCloud;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.SelectProvider;
import org.springframework.stereotype.Repository;

/**
 * @author chenchenT
 * @date : 18-11-13
 * @since : java 8
 */
@Mapper
@Repository
public interface WordCloudMapper {

    /**
     * 随机获取20个词云
     *
     * @return wordClouds
     */
    @SelectProvider(type = WordCloudProvider.class, method = "selectWordCloud")
    WordCloud selectWordCloud(WordCloud wordCloud);

}
